package com.fire.chat.controller;


import com.fire.chat.entity.response.BaseResponse;
import com.fire.chat.service.SysLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>标题: 控制层</p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2020</p>
 *
 * @version: 1.0
 * @author: xiejiarong
 * @date 2020-11-10
 */
@RestController
@RequestMapping("/sys-log")
@Api(tags = "日志管理")
public class SysLogController  {

    @Autowired
    SysLogService sysLogService;


    @GetMapping("list")
    @ApiOperation("日志列表")
    public BaseResponse list(){
        return BaseResponse.success(sysLogService.listAll());
    }






}

